﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace NetCoreQrCoreDemo.Attribute
{
    /// <summary>
    /// Mongodb表名称设定
    /// </summary>
    public class MongoAttribute:System.Attribute
    {
        /// <summary>
        /// 集合名称 【数据库表名称】
        /// </summary>
        public string CollectionName { get; set; }

        /// <summary>
        /// Mongodb表名称设定
        /// </summary>
        /// <param name="name">表名称/集合名称</param>
        public MongoAttribute(string name)
        {
            CollectionName = name;
        }
    }
}
